<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        tr {
            text-align: center;
        }
    </style>
    <script src="./vue.js"></script>

</head>

<body>
    <div id="test">
        <table id="test" border="1px" cellspacing="0" width="500px">
            <tr>

                <th>id &nbsp;</th>
                <th>姓名</th>
                <th>年龄</th>
                <th>性别</th>
                <th>成绩</th>
                <th>等级</th>
            </tr>
            <tr v-for="(user,index) in users">
                <td>{{index}}</td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>

            </tr>


        </table>
    </div>
</body>
<script>
    new Vue({
        el: "#test",
        data: {
            // users: {
            //     ids: [1, 2, 3, 4, 5, 6],
            //     names: ['名', '明', '化', '杠', '花', '义'],
            //     ages: [12, 13, 12, 11, 10, 12],
            //     gender: ['男', '女', '男', '男', '女', '男'],
            //     scores: [110, 25, 98, 46, 55, 78],
            //     numbers: ['甲', '乙', '丙']
            // }
            users: [{
                id: 1,
                name: "wang",
                age: 11,
                gender: 1,
                score: 99
            }, {
                id: 2,
                name: "wang1",
                age: 12,
                gender: 1,
                score: 10
            }, {
                id: 3,
                name: "wang3",
                age: 13,
                gender: 2,
                score: 57
            }, {
                id: 4,
                name: "wang4",
                age: 15,
                gender: 2,
                score: 76
            }, {
                id: 5,
                name: "wang5",
                age: 11,
                gender: 1,
                score: 79
            }
            ]
        }

    })

</script>

</html>